package com.icode.gulimall.auth.feign;

import com.icode.common.utils.R;
import com.icode.gulimall.auth.vo.MemberLoginVo;
import com.icode.gulimall.auth.vo.SocialUser;
import com.icode.gulimall.auth.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: my_code
 * @Email: my_code@foxmail.com
 * @Create: 2021-01-04 17:43
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegistVo registVo);


    @RequestMapping("/member/member/acctLogin")
    R acctLogin(@RequestBody MemberLoginVo acctVo);

    @PostMapping("/member/member/oauthLogin")
    R oauthLogin(@RequestBody SocialUser socialUser);
}
